package main.java.game.command;

import main.java.game.Game;
import main.java.game.item.Weapon;

public class BuyWeapon implements PlayerCommand {

	private Game game;
	private Weapon weapon;
	public BuyWeapon(Game game, Weapon weapon){
		this.game = game;
		this.weapon = weapon;
	}
	
	public void execute() {
		game.getPlayer().getWeapons().add(weapon);
		game.getWeapons().remove(weapon);
		

	}

}
